import requests


headers = {
    # "accept": "*/*",
    # "accept-language": "en-US,en;q=0.9",
    # "cache-control": "no-cache",
    "content-type": "application/x-www-form-urlencoded",
    "origin": "https://www.facebook.com",
    # "pragma": "no-cache",
    # "priority": "u=1, i",
    "referer": "https://www.facebook.com/search/pages?q=computer%20accessories",
    # "sec-ch-prefers-color-scheme": "light",
    # "sec-ch-ua": "\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Google Chrome\";v=\"134\"",
    # "sec-ch-ua-full-version-list": "\"Chromium\";v=\"134.0.6998.166\", \"Not:A-Brand\";v=\"24.0.0.0\", \"Google Chrome\";v=\"134.0.6998.166\"",
    # "sec-ch-ua-mobile": "?0",
    # "sec-ch-ua-model": "\"\"",
    # "sec-ch-ua-platform": "\"Windows\"",
    # "sec-ch-ua-platform-version": "\"13.0.0\"",
    # "sec-fetch-dest": "empty",
    # "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
    # "x-asbd-id": "359341",
    # "x-fb-friendly-name": "SearchCometResultsPaginatedResultsQuery",
    # "x-fb-lsd": "VI6KE8Z6zMFkA05HRnPh01"
}
cookies = {
    # "datr": "Ac3DaP2ZvaGKNRgUSMiwRH9Q",
    # "sb": "Ac3DaIBdxU29RvcErm9I-y1G",
    # "ps_l": "1",
    # "ps_n": "1",
    # "locale": "en_US",
    "c_user": "61578635791448",
    # "ar_debug": "1",
    # "fr": "1ONYIP6N4smjlv7Sk.AWeyUnu15j9EmkAnh-RzD7bKKn7Lib0CmFQ6LESX3Qdy4iWWzZ4.Bo0OZc..AAA.0.0.Bo0OZc.AWcT_u4UqF8IivXWnh6d4dmtVK8",
    "xs": "8%3Ar8E04T9gRV91hQ%3A2%3A1757662728%3A-1%3A-1%3A%3AAcW0EnY4ik-7ctUI_jMpRJHyWDl6tD4y3UXqsVYj9g",
    # "presence": "C%7B%22t3%22%3A%5B%5D%2C%22utc3%22%3A1758520933101%2C%22v%22%3A1%7D",
    # "wd": "897x945"
}
url = "https://www.facebook.com/api/graphql/"
data = {
    # "av": "61578635791448",
    # "__aaid": "0",
    # "__user": "61578635791448",
    # "__a": "1",
    # "__req": "5k",
    # "__hs": "20353.HYP:comet_pkg.2.1...0",
    # "dpr": "1",
    # "__ccg": "EXCELLENT",
    # "__rev": "1027405870",
    # "__s": "3g1srd:yxfx1t:1hgian",
    # "__hsi": "7552789833467939105",
    # "__dyn": "7xeUjGU5a5Q1ryaxG4Vp41twWwIxu13wFwhUKbgS3q2ibwNw9G2Saw8i2S1DwUx60GE5O0BU2_CxS320qa321Rwwwqo462mcwfG12wOx62G5Usw9m1YwBgK7o6C0Mo4G17yovwRwlE-U2exi4UaEW2G1jwUBwJK14xm3y11xfxmu3W3rwxwjFovUaU3VwLyEbUGdG0HE88cA0z8c84q58jyUaUbGxe6Uak0zU8oC1hxB0qo4e4UO2m3Gfw-KufxamEbbxG1fBG2-2K0E8461wweW2K3abxG6E5i",
    # "__csr": "g49sQ5RMkMB3a4kxf93YIgI9YhFYQLtPn3kndPiSBliORln9fp6NbO9tHltlR8htO-pSL9u-hmUB5n8GFOnEOdGiByaiWQVdqKHhAiHTiGRF5Gh5mB9iVqTGVpFoGGAVkq9Whmm8hrAXjq8GZGUKWXmnFbGviix28AKFXDCgGXJoxaUCjWigxbKcy8Om-mFVaximV-WKi44KVsK9yZ7yoF2Fuvh8KqQmWgigyuCFFU8WzA4bgK9rKWyoZUOchpLx9pWQbBAgGpoy9xOvBWy8y5eK5WCxngmxutyt0xUG4Ey5eeDK8hFucGUGaxx4VUOq4EiyEyEixO7okBzUaCcHxi5ES78vxucBy8B1q48lAwhaz8KUpxW3-2R6wyxeUixeEW7VE9Eyu68K5898fU88syUSKE9o4S5UtBwFxTxG2a2m3WezU8okwrEaF8158qwPxG18xx1m27yU6q2C0UUcE461qwa53Ux0lA0GS1fV81l8bOz5w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Uqx-22h0xU4q0Spo3xwjEb8K2G2e7pE35AwTzo5G6Ubby8984a8Cx2cwTxe3a4U4-68hwXx-1Xwn8txu1pwLwJgdo2ngtwWGawLwZx26EeVEGql6wqU5K8xi3e2B1-58K3i1bxO2a9hQ9g7i5E425E33woUa85W1AwVxm2R0SAzU-2l3oC2a1FAwYwj8C18wMwuE460Do88tVUviwxo2ewhU2Two8do662y16K3u0N88U9UWdzE2iBw920I88HKi3CU2mz82Sg188a98bUW5Elwbe4Wxi0JE2yBt0Aw5vwn8rzoG2-m488Fo2pwywTxS12xi366o88b8rwjE6G10wuUswiE5-48yEiK58y5o6K4Enw8S588aBzE4e0SEjwfq0IUb8nwoE9827DwTxOeBwjE4m0CEy0IU2AxmUswjU6K0CE2Aw9e22WCxK5EC4U4Sq485S5Epw9y8w5Ow8S10xu4U18opDwfd0vku5otxqq0g-u6k4U52bCyEeEW4Gyo2ewDxa8AwdW59E5a1Bg",
    # "__sjsp": "gac8gMy8qz8AO3N94yEoAACgx269224GFz88Eh22r4EGj8yWeoeNBhwWyqMMIG2l5mohcBsAOaRr4NmEFfBHQOi4BsVdIXWJ8zCDRx2lqanSgBVogFB9JjeGx9xyV6FEpBoC2h4AVWUW95yQF4q9t6F6Ax59WK4cwFDWx3zFidP8TL8h8ysTiIlSg92kHAbjX8yy7zEhr8iWiUpAQGDEGqc88XoCi5P2oGAuamqNqaEyt5SumjG8AHpGjyUCJ4R5KWqqVokyHxm7EwwrAKa4y7oG545k2bjwCgECfyngpww9AhEF2QubyUW2Sbx26oB2BF4zAkxm2ReEuUEEtwMy42dat34p1-eUJ9LsQigwkJ0EyUlAAKfwGzopCAxZ1N6BzE5BG5mEjgiJwXxle462B1V0Ize5ogBg148rgcFUBBzUvxx085161LxC0jy1BwgUsg3t7wIgi82ii1Ng4wjc0RoU9h85O2u0KU1nE0MaO1xa0_FCN83Yw2HA",
    # "__comet_req": "15",
    "fb_dtsg": "NAfuBtykQTQl5-eY1lcJLiWhwKLv3vqDcdVmgfsjgjrSNokndRMO3PA:8:1757662728",
    # "jazoest": "25723",
    "lsd": "VI6KE8Z6zMFkA05HRnPh01",
    # "__spin_r": "1027405870",
    # "__spin_b": "trunk",
    # "__spin_t": "1758520918",
    # "__crn": "comet.fbweb.CometSearchGlobalSearchDefaultTabRoute",
    # "fb_api_caller_class": "RelayModern",
    # "fb_api_req_friendly_name": "SearchCometResultsPaginatedResultsQuery",
    "variables": "{\"allow_streaming\":false,\"args\":{\"callsite\":\"COMET_GLOBAL_SEARCH\",\"config\":{\"exact_match\":false,\"high_confidence_config\":null,\"intercept_config\":null,\"sts_disambiguation\":null,\"watch_config\":null},\"context\":{\"bsid\":\"59c0281b-4ec9-44d0-b620-c7b005027c09\",\"tsid\":\"0.0916167503348948\"},\"experience\":{\"client_defined_experiences\":[\"ADS_PARALLEL_FETCH\"],\"encoded_server_defined_params\":null,\"fbid\":null,\"type\":\"PAGES_TAB\"},\"filters\":[],\"text\":\"computer accessories\"},\"count\":1,\"cursor\":\"AbqnlxITvUe-xlwGYHmWK_u6FmhLRkaMes_vriUMKtLhX9G2GvAkNuOqeScj4Hqr2ziiVlm2oh1dhqR1ti8hoT6QPUu1jk3oua2azZl-UwgBzffSwxL2hRYztAvH01PM0QlesId4KsFn_Np-yL_LSCVA2sFmz8eYwX9Xa75Xt5V7JBiBB9qJIsDBisr4q1FhfpX9mEtpPE3p7JqKWoxwcPMaVW0ae8do1JmqlwmR8X3fyHHgTQRV9bAwBDCses0OTsC4mWZbtgfy_WC0uK7KUEkdJPCdmKTkEu8XFUuLnZzShvoWWpQf3TVrLVOhoOMccXuMUEo9I5TBcTQX9feYN2gfbMKLtJybyK4IVU7ZTurpMJeknQZBULXbv7XkvAd9Cd4IBf7jFn504-gmfB7nCCcdAKSGtHoq6mVO67lp911LaYOdibo_wQIZK4AkVgK4CXDyHux7OQd8au2fMeqFV0qYNuNociqflSanfORXjX0tDkeyGtkBzoukB_y5OpugpWPCR2SAaqjbXt2RUCaIdiqs1ALr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9vahZgu66ImXAKQNNJUANX-SR7XvMdiEDDAgk0wsBLxSRdLcdjUgcQNP8u8OxUN8-pfUlEFu9z6qV9soPCSEfM0mEH5v-Sk2BX4g\",\"feedLocation\":\"SEARCH\",\"feedbackSource\":23,\"fetch_filters\":true,\"focusCommentID\":null,\"locale\":null,\"privacySelectorRenderLocation\":\"COMET_STREAM\",\"renderLocation\":\"search_results_page\",\"scale\":1,\"stream_initial_count\":0,\"useDefaultActor\":false,\"__relay_internal__pv__GHLShouldChangeAdIdFieldNamerelayprovider\":true,\"__relay_internal__pv__GHLShouldChangeSponsoredDataFieldNamerelayprovider\":true,\"__relay_internal__pv__FBReels_enable_view_dubbed_audio_type_gkrelayprovider\":false,\"__relay_internal__pv__CometUFICommentAvatarStickerAnimatedImagerelayprovider\":false,\"__relay_internal__pv__IsWorkUserrelayprovider\":false,\"__relay_internal__pv__FBReels_deprecate_short_form_video_context_gkrelayprovider\":true,\"__relay_internal__pv__FeedDeepDiveTopicPillThreadViewEnabledrelayprovider\":false,\"__relay_internal__pv__CometImmersivePhotoCanUserDisable3DMotionrelayprovider\":false,\"__relay_internal__pv__WorkCometIsEmployeeGKProviderrelayprovider\":false,\"__relay_internal__pv__IsMergQAPollsrelayprovider\":false,\"__relay_internal__pv__FBReelsMediaFooter_comet_enable_reels_ads_gkrelayprovider\":true,\"__relay_internal__pv__CometUFIReactionsEnableShortNamerelayprovider\":false,\"__relay_internal__pv__CometUFIShareActionMigrationrelayprovider\":true,\"__relay_internal__pv__CometUFI_dedicated_comment_routable_dialog_gkrelayprovider\":false,\"__relay_internal__pv__StoriesArmadilloReplyEnabledrelayprovider\":true,\"__relay_internal__pv__FBReelsIFUTileContent_reelsIFUPlayOnHoverrelayprovider\":true,\"__relay_internal__pv__GroupsCometGYSJFeedItemHeightrelayprovider\":150,\"__relay_internal__pv__StoriesShouldIncludeFbNotesrelayprovider\":false}",
    # "server_timestamps": "true",
    "doc_id": "24568241702796382"
}
proxies = {
    'http': 'http://127.0.0.1:8889',
    'https': 'http://127.0.0.1:8889'
}
response = requests.post(url, headers=headers, cookies=cookies, data=data,proxies=proxies)

print(response.text)
print(response)